package impl

import (
	"context"

	"github.com/cloudwego/hertz/pkg/app"
	"hertz-nbdemo/biz/service"
	"hertz-nbdemo/util/common"
)

var _ service.CasbinService = &CasbinServiceImpl{}

type CasbinServiceImpl struct {
	BaseService
}

func NewCasbinService() service.CasbinService {
	return &CasbinServiceImpl{}
}

func (c2 *CasbinServiceImpl) R(ctx context.Context, c *app.RequestContext) {
	c2.Response(c, common.SimpleSuccess())
}

func (c2 *CasbinServiceImpl) U(ctx context.Context, c *app.RequestContext) {
	c2.Response(c, common.SimpleSuccess())
}
